---
title: Groups.Add Method (Project)
ms.prod: project-server
api_name:
- Project.Groups.Add
ms.assetid: 320bafe1-0cbd-282c-ffbc-c37d69088578
ms.date: 06/08/2017
---


# Groups.Add Method (Project)

Adds a  **Group** object to a **Groups** collection.


## Syntax

 _expression_. **Add**( ** _Name_**, ** _FieldName_** )

 _expression_ A variable that represents a **Groups** object.


### Parameters



|**Name**|**Required/Optional**|**Data Type**|**Description**|
|:-----|:-----|:-----|:-----|
| _Name_|Required|**String**|The name of the group|
| _FieldName_|Required|**String**|The name of the field being grouped by.|

### Return Value

 **Group**


## See also


#### Concepts


[Groups Collection Object](groups-object-project.md)
